package com.hkx.service;

import com.hkx.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.time.LocalDate;


/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author huangkexing
 * @since 2024-08-05
 */
public interface AdminService extends IService<Admin> {
    boolean check(Long id, String field, String value);
    boolean add(String name, String nickyName, Integer sex, LocalDate birthday, String phone, String email, String password, MultipartFile file) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;
    boolean update(Long id, String name, String nickyName, Integer sex, LocalDate birthday, String phone, String email, String icon);
    boolean del(Long id, Boolean status);

}
